package ntd.sys;

public class ToolJvm {

    /**
     * 设置不允许调用 System.exit(status)
     *
     * @throws Exception
     */
    public static void setNoExit() throws Exception {
        System.setSecurityManager(new NoExitSecurityManager());
    }
}
